<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/pageRc/common/common.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="msapplication-tap-highlight" content="no">
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/js/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="<%=commonPath%>/pageRc/layui/css/layui.css"
	media="all">
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/common/utils.js"></script>
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/common/msgTool.js"></script>
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/layui/layui.js"></script>
<title>修改监控信息</title>
<script type="text/javascript">
	var path = "<%=commonPath%>";
	var msg =new msgTool(); 
 
	</script>
</head>

<body style="">
	<div class="header">
		<div class="main">
		</div>
	</div>
	<form id="createMsgForm" name="createMsgForm" class="layui-form"
		style="padding: 1.5rem">
		 <div class="layui-form-item">
                 <label class="layui-form-label">所属项目组</label>
	              <div class="layui-input-block"> 
	                  <input id="rouid"  name = "rouid"  value="${needBean.rouid}"  type="hidden">
	                  <input id="proTeamNo"  name = "proTeamNo"  value="${needBean.proTeamNo}"  type="hidden">
	                  <input id="proTeamName"  name = "proTeamName"  value="${needBean.proTeamName}"  class="layui-input" disabled>
 	              </div>
               </div>
		<div class="layui-form-item">
			<label class="layui-form-label">上线日期</label>
			 <div class="layui-inline">
						<input class="layui-input" style="width: 210" id="dateOfLine" name="dateOfLine"
							value="${needBean.dateOfLine}"
							onclick="layui.laydate({elem: this, istime: true, format: 'YYYYMMDD'})">
					</div> 
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">行方经理</label>
			<div class="layui-input-inline">
				<input type="text" id="hfjl" name="hfjl" placeholder="请输入行方经理"
					value="${needBean.hfjl}" name="hfjl"  lay-verify="required"
					autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">行方业务人员 </label>
			<div class="layui-input-block">
				<input type="text" id="hfywry" name="hfywry"
					value="${needBean.hfywry}" placeholder="请输入行方业务人员" 
					lay-verify="required" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
		      <label class="layui-form-label">规划状态 </label>
		       <div class="layui-inline">
					<select name="planStatus" id="planStatus" style="width: 210;">
					    <option value="${needBean.planStatus}"></option>
						<option value="未立项">未立项</option>
						<option value="已立项">已立项</option>
						<option value="已过规划评审">已过规划评审</option>
						<option value="已下任务单">已下任务单</option>
						<option value="人力外包">人力外包</option>
					</select>
				</div>
		</div>
		<div class="layui-form-item">
		      <label class="layui-form-label">规划状态 </label>
		       <div class="layui-inline">
					<select name="months" id="months" style="width: 210;">
					    <option value="${needBean.months}"></option>
						<option value="1月份">1月份</option>
						<option value="2月份">2月份</option>
						<option value="3月份">3月份</option>
						<option value="4月份">4月份</option>
						<option value="5月份">5月份</option>
						<option value="6月份">6月份</option>
						<option value="7月份">7月份</option>
						<option value="8月份">8月份</option>
						<option value="9月份">9月份</option>
						<option value="10月份">10月份</option>
						<option value="11月份">11月份</option>
						<option value="12月份">12月份</option>
					</select>
				</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">评估工时 </label>
			<div class="layui-input-inline">
				<input type="number" id="needTime" name="needTime"
					value="${needBean.needTime}" placeholder="按小时填写" 
					lay-verify="required" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">合同批次</label>
			<div class="layui-input-block">
				<input id="contractApproval" name="contractApproval" class="layui-input"
					placeholder="请输入合同批次" value="${needBean.contractApproval}" 
					 autocomplete="off">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-filter="submitData" lay-submit>修改提交</button>
			</div>
		</div>
	</form>
	<script> 
  layui.use(
		[ 'form', 'layer', 'laytpl', 'laypage','laydate' ],
		 function(){
			var form = layui.form(),
			layer = layui.layer;
			 var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
			form.on('submit(submitData)',function(data){
				var field = data.field;
				if(field.needTime<=80){
					   layer.confirm("你确定你的评估工时的单位是小时吗？如果不是请点击取消。",{icon:3,title:"提示"},function(index){
 						   msg.sendMsg("/page/need/doUpdateJianKong.do",field,function(data){ //新加的微信登录入口
								/* layer.alert("修改成功！"); */
								index = parent.layer.getFrameIndex(window.name);
								if(index>=1)
				                    parent.layer.close(index); //执行关闭
				                else
									location.href ="<%=commonPath%>/page/need/doShowNeedInfor.do";
							}); 
					   }); 
				}else{
					 msg.sendMsg("/page/need/doUpdateJianKong.do",field,function(data){ //新加的微信登录入口
							/* layer.alert("修改成功！"); */
							if(index>=1)
			                    parent.layer.close(index); //执行关闭
			                else
								location.href ="<%=commonPath%>/page/need/doShowNeedInfor.do";
																	});
												}
												return false;
											});
						});
		function custom_close() {
			window.opener = null;
			window.open('', '_self');
			window.close();
		}
	</script>
</body>
</html>